package cn.ibizlab.odoo.core.odoo_crm.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_crm.domain.Crm_lead2opportunity_partner;
import cn.ibizlab.odoo.core.odoo_crm.filter.Crm_lead2opportunity_partnerSearchContext;

/**
 * 实体[Crm_lead2opportunity_partner] 服务对象接口
 */

public interface ICrm_lead2opportunity_partnerService{
     boolean create(Crm_lead2opportunity_partner crm_lead2opportunity_partner) ;
     boolean remove(Integer id) ;
     Crm_lead2opportunity_partner get(Integer id) ;
     Crm_lead2opportunity_partner get(Crm_lead2opportunity_partner crm_lead2opportunity_partner) ;
     boolean update(Crm_lead2opportunity_partner crm_lead2opportunity_partner) ;
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     void createBatch(List<Crm_lead2opportunity_partner> crm_lead2opportunity_partners, int batchSize) ;
     void updateBatch(List<Crm_lead2opportunity_partner> crm_lead2opportunity_partners, int batchSize) ;

    /**
     * 查询集合 默认查询
     */
    Page<Crm_lead2opportunity_partner> searchDefault(Crm_lead2opportunity_partnerSearchContext context) ;

    /**
     * 根据销售渠道查询
     */
     Page<Crm_lead2opportunity_partner> selectByOdoo_team(Integer id) ;

    /**
     * 根据联系人查询
     */
     Page<Crm_lead2opportunity_partner> selectByOdoo_partner(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Crm_lead2opportunity_partner> selectByOdoo_create(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Crm_lead2opportunity_partner> selectByOdoo_user(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Crm_lead2opportunity_partner> selectByOdoo_write(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Crm_lead2opportunity_partner convert2Domain(cn.ibizlab.odoo.core.client.model.Icrm_lead2opportunity_partner model ,Crm_lead2opportunity_partner domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Icrm_lead2opportunity_partner convert2Model(Crm_lead2opportunity_partner domain , cn.ibizlab.odoo.core.client.model.Icrm_lead2opportunity_partner model);

}
